import {
    userPartyDuesPayStatistics,
    recordUserPartyDuesPays,
    pay,
    refreshPayState,
    readRecordPartyDues
    } from '@/api/duesApi'
const dues = {
    namespaced: true,
    state: {
        
    },
    getters: {
    },
    mutations: {
      
    },
    actions: {
        UserPartyDuesPayStatistics ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                userPartyDuesPayStatistics(params).then(res => {
                    resolve(res)
                })
            })
          },
          RecordUserPartyDuesPays ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                recordUserPartyDuesPays(params).then(res => {
                    resolve(res)
                })
            })
          },
          Pay ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                pay(params).then(res => {
                    resolve(res)
                })
            })
          },
          RefreshPayState ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                refreshPayState(params).then(res => {
                    resolve(res)
                })
            })
          },
          ReadRecordPartyDues ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                readRecordPartyDues(params).then(res => {
                    resolve(res)
                })
            })
          }
    }
}
export default dues